include $(IHOMEGWPATH)/rule.makefile

DESTAPP = serialtest

SOURCES = $(wildcard *.cpp)

OBJS = $(SOURCES:.cpp=.o)

LDFLAGS =  -lm -lpthread

LINKLIBPATH = -L../ -L../../global -L../../sqlite

LINKLIB =  -lserial -ldb -lglobal -lsqlite3

all: $(DESTAPP)  

$(DESTAPP):$(OBJS)
	$(LD) $(LDFLAGS) $(LINKLIBPATH) -o $(DESTAPP) $(OBJS) $(LINKLIB)	
	
	
clean:
	@echo ***************Clean*******************
	rm -f $(OBJS) $(DESTAPP)
	rm -f  $(MYBINPATH)/$(DESTAPP)	
	
install:
	cp -f $(DESTAPP) $(MYBINPATH)	
